<style>
    td { border:none ! important;}
		.row{
			margin-left: 0!important;
			margin-right: 0!important;
			width: 100%;
		}
		@media screen and (max-width:750px){
			.rows{
				margin-top: 10px;
			}
			#echart{
				width: 100%!important;
				height: 350px!important;
			}
		}
</style>
<div class="row rows" style="padding: 60px 0 20px 0;;margin-bottom: 40px;">
    <div class="col-md-12">
        <div id="echart" style="width: 75%;height:400px;margin:0 auto">
        </div>
    </div>
    <div class="col-md-12" style="top:20px;">

        {php}
        $str1 = '';
        $str2 = '';
        $ana = [];
        $strong = '';
        $nomal = '';
        $weak = '';
        foreach($assData['cates'] as $k => $v){
            $v['id'] = +1;
            $str1 .= '<td>'.$v['name'].'</td>';
            $str2 .= '<td>'.$assData['answers_ana'][$v['id']].'</td>';
            $ana[$v['id']] = [
                'name'  => $v['name'],
                'score' => $assData['answers_ana'][$v['id']]
            ];
            if($assData['answers_ana'][$v['id']] > 16){
                $strong .= $v['name'].',';
            }elseif($assData['answers_ana'][$v['id']] > 8 && $assData['answers_ana'][$v['id']] <=16){
                $nomal .= $v['name'].',';
            }else{
                $weak .= $v['name'].',';
            }
        }
        $strong = trim($strong,',');
        $nomal = trim($nomal,',');
        $weak = trim($weak,',');
        {/php}

        <div class="panel panel-success">
            <div class="panel-heading">多元智能测评分析</div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-bordered mb0 analysis">
                        <tbody>
                        <tr>
                            <td>
                                在表格中，得分越高说明你的这项能力越优势，反之，得分越低说明你的这项能力越不足。从图中可以看出：相比而言，你的
                                {php}
                                if($strong){
                                {/php}
                                最优能力分别是：{$strong}；
                                {php}
                                }
                                if($nomal){
                                {/php}
                                中等能力分别是：{$nomal}；
                                {php}
                                }
                                if($weak){
                                {/php}
                                弱项能力分别是：{$weak}；
                                {php}
                                }
                                {/php}
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    
    {if $from=='admin' }
    <button class="btn btn-success" style="position: fixed; top:90px; right:130px;" onclick="$(this).hide();$('.hid').hide();window.print()">打印本页</button>
<!--    <button class="btn btn-success" style="position: fixed; top:90px; right:50px;" onclick="window.location.href='/admin/test/dyzn/answer/download?ids={$row.id}'">下载报告</button>-->
    {elseif $from == 'all'}
    {else}
    <button class="btn btn-success" style="position: fixed; top:90px; right:50px;" onclick="window.location.href='next?current=dyzn'">进入下一个测评</button>
    <!-- <button class="btn btn-danger" style="position: fixed; top:130px; right:50px;" onclick="window.location.href='allreport'">查看所有测评</button> -->
    {/if}
</div>